package com.bravo.article.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * article实体类
 * @author yuyong
 *
 */
@Entity
@Table(name="tb_article")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article implements Serializable{

	@Id
	private String id;//ID
	private String columnId;//专栏ID
	private String userId;//用户ID
	private String title;//标题
	private String content;//文章正文
	private String image;//文章封面
	private java.util.Date createTime;//发表日期
	private java.util.Date updateTime;//修改日期
	private String isPublic;//是否公开  0:不公开，1:公开
	private String isTop;//是否置顶  0:不置顶，1:置顶
	private Integer visits;//浏览量
	private Integer thumbup;//点赞数
	private Integer comment;//评论数
	private String state;//审核状态 0:未审核，1:审核
	private String channelId;//所属频道  关联频道表ID
	private String url;//URL
	private String type;//类型  0:分享，1:专栏

	
	
}
